@import "./variables";

.el-container{
  height: 100%;
  color: #d3d6dd;
  background-color: #000000;
  background-image: url("../assets/images/pageBg.png");
  background-size: cover;

  .el-header{
    height: 2rem !important;
    .header-2{
      margin-top: 0.1875rem;
    }
  }

  .el-aside{
    background-color: #0f1325;
    
    .el-menu{
        border-right: 0;
      }
  }

  .el-main{
    background-color:#d3d6dd;
    opacity: 0.5;
  }
  
    // 标题文字部分
    .title {
        position: relative;
        top: 0.15rem;
        width: 6.25rem;
        text-align: center;
        background-size: cover;
        background-repeat: no-repeat;
  
        .title-text {
          font-size: 0.3rem;
          position: absolute;
          bottom: 0.3rem;
          left: 50%;
          transform: translate(-50%);
        }
  
        .title-bototm {
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translate(-50%);
        }
    }

    // 平行四边形
    .react-left {
        cursor: pointer;
        font-size: 0.225rem;
        width: 3.75rem;
        height: 0.5rem;
        line-height: 0.5rem;
        text-align: center;
        transform: skewX(-45deg);
  
        .react-after {
          position: absolute;
          right: -0.3125rem;
          top: 0;
          height: 0.5rem;
          width: 0.625rem;
          background-color: #0f1325;
          transform: skewX(45deg);
        }
  
        .text {
          display: inline-block;
          transform: skewX(45deg);
        }
    }
    .react-right {
        cursor: pointer;
        font-size: 0.225rem;
        width: 3.75rem;
        height: 0.5rem;
        line-height: 0.5rem;
        text-align: center;
        transform: skewX(45deg);
  
        .react-before {
          position: absolute;
          left: -0.3125rem;
          top: 0;
          height: 0.5rem;
          width: 0.625rem;
          background-color: #0f1325;
          transform: skewX(-45deg);
        }
  
        .text {
          display: inline-block;
          transform: skewX(-45deg);
        }
    }
}


// 侧边栏按钮
.toggle-button{
  background-color: #4a5064;
  font-size: 10px;
  line-height: 24px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.2em;
  cursor: pointer;
}










 

.clearfix {
  &::after {
    content: "";
    display: table;
    height: 0;
    line-height: 0;
    visibility: hidden;
    clear: both;
  }
}

//浮动
.float-r {
  float: right;
}

//浮动
.float-l {
  float: left;
}

// 字体加粗
.fw-b {
  font-weight: bold;
}

//文章一行显示，多余省略号显示
.title-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bg-color-black {
  background-color: rgba(19, 25, 47, 0.6);
}

.bg-color-blue {
  background-color: #1a5cd7;
}

.colorBlack {
  color: #272727 !important;

  &:hover {
    color: #272727 !important;
  }
}

.colorGrass {
  color: #33cea0;

  &:hover {
    color: #33cea0 !important;
  }
}

.colorRed {
  color: #ff5722;

  &:hover {
    color: #ff5722 !important;
  }
}

.colorText {
  color: #d3d6dd !important;

  &:hover {
    color: #d3d6dd !important;
  }
}

.colorBlue {
  color: #257dff !important;

  &:hover {
    color: #257dff !important;
  }
}

//颜色
@each $colorkey, $color in $colors {
  .text-#{$colorkey} {
    color: $color;
  }

  .bg-#{$colorkey} {
    background-color: $color;
  }
}

//对齐
@each $var in (left, center, right) {
  .text-#{$var} {
    text-align: $var !important;
  }
}

//flex
@each $key, $value in $flex-jc {
  .jc-#{$key} {
    justify-content: $value;
  }
}

@each $key, $value in $flex-ai {
  .ai-#{$key} {
    align-items: $value;
  }
}

//字体
@each $fontkey, $fontvalue in $font-sizes {
  .fs-#{$fontkey} {
    font-size: $fontvalue * $base-font-size;
  }
}

//.mt-1 => margin top
//spacing

@each $typekey, $type in $spacing-types {
  //.m-1
  @each $sizekey, $size in $spacing-sizes {
    .#{$typekey}-#{$sizekey} {
      #{$type}: $size * $spacing-base-size;
    }
  }

  //.mx-1
  @each $sizekey, $size in $spacing-sizes {
    .#{$typekey}x-#{$sizekey} {
      #{$type}-left: $size * $spacing-base-size;
      #{$type}-right: $size * $spacing-base-size;
    }

    .#{$typekey}y-#{$sizekey} {
      #{$type}-top: $size * $spacing-base-size;
      #{$type}-bottom: $size * $spacing-base-size;
    }
  }

  //.mt-1
  @each $directionkey, $direction in $spacing-directions {
    @each $sizekey, $size in $spacing-sizes {
      .#{$typekey}#{$directionkey}-#{$sizekey} {
        #{$type}-#{$direction}: $size * $spacing-base-size;
      }
    }
  }

  .#{$typekey} {
    #{$type}: 0;
  }
}
